<template>
	<view class="card">
		<slot>
			<div class="card-name">{{cardTitle}}</div>
		</slot>
		<div class="subtitle">好货专区</div>
	</view>
</template>

<script>
	export default {
		props: {
			cardTitle: String
		}
	}
</script>

<style lang="scss" scoped>
	.card {
		padding: 20rpx 0;
		display: flex;
		justify-content: center;
		flex-direction: column;
		align-items: center;
		font-weight: bold;
		text-align: center;

		.card-name {
			padding: 0 20rpx;
			font-size: 32rpx;
			color: #17D46B;
			margin-bottom: 10rpx;
		}

		.subtitle {
			background-color: #17D46B;
			color: #fff;
			border-radius: 30rpx;
			font-size: 32rpx;
			width: 170rpx;
			height: 50rpx;
			line-height: 50rpx;
		}
	}
</style>